package com.ruoyi.system.entity;

import io.mybatis.provider.Entity.Column;
import io.mybatis.provider.Entity.Table;
import lombok.Data;

/**
 * sys_dept - 部门表
 *
 * @author mkj
 */
@Data
@Table(value = "sys_dept", remark = "部门表", autoResultMap = true)
public class SysDeptDO extends BaseDO {
    @Column(value = "dept_id", id = true, remark = "部门id", updatable = false, insertable = false)
    private Long deptId;

    @Column(value = "parent_id", remark = "父部门id")
    private Long parentId;

    @Column(value = "ancestors", remark = "祖级列表")
    private String ancestors;

    @Column(value = "dept_name", remark = "部门名称")
    private String deptName;

    @Column(value = "order_num", remark = "显示顺序")
    private Integer orderNum;

    @Column(value = "leader", remark = "负责人")
    private String leader;

    @Column(value = "phone", remark = "联系电话")
    private String phone;

    @Column(value = "email", remark = "邮箱")
    private String email;

    @Column(value = "status", remark = "部门状态（0正常 1停用）")
    private String status;

    @Column(value = "del_flag", remark = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

}
